* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.article-container {
    display: flex
;
    width: 80%;
    margin: 20px auto;
    max-width: 1200px;
    min-width: 1064px;
}

.article-sidebar {
    width: 10%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
}

.interaction-icon {
    margin-bottom: 10px;
    cursor: pointer;
}

.interaction-icon img {
    width: 30px;
    height: 30px;
}

.icon-count {
    margin-left: 5px;
}

.work-thumbnail {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.work-details h5 {
    font-size: 1em;
    margin-bottom: 5px;
}
.empty-comment{
    margin: 24vh auto;
    text-align: center;
    span{
        margin-left: 16px;
    }
}
.cat{
    font-size: 100px;
}
.work-read-count {
    color: #777;
    margin-right: 5px;
}

.work-date {
    color: #777;
}

body {
    background-color: #f8f9fd;
}

.author-card {
    width: 100%;
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    margin: 0px auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e6e6e6;
}

.card-title {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-name-container {
    display: flex;
    align-items: center;
}

.author-name {
    font-size: 1.1em;
}

.author-badge {
    margin-left: 5px;
}

.author-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: #777;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.1em;
    font-weight: bold;
}

.author-actions {
    display: flex;
    justify-content: space-around;
}

.follow-button {
    background-color:rgba(0,123,255,1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}
.follow-button.following {
    background-color: #b9bdc8; /* 已关注状态的颜色 */
}
.message-button {
    background-color: #f4f4f4;
    color: #555;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.article-meta {
    margin-bottom: 15px;
}

.right-column {
    margin-left: 12px;
    margin-top: 0px;
}

.article-content {
    background-color: #fff;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #e6e6e6;
    padding-top: 20px;
    p{
        letter-spacing: 1px;
    }
}

img {
    width: 875px;
    height: 465px;
    object-fit: contain;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.like-icon{
    color: rgb(82, 91, 100,1);
}
/* 返回按钮样式 */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #5290f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    width: 152px;
}

.back-button:hover {
    background-color: #3d76f3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-button:hover i {
    transform: translateX(-2px);
}

.back-button i {
    transition: transform 0.3s ease;
    color: white;
}
/* 淡入淡出动画 */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #f9f9f9;
}

.share-outer {
    position: absolute;
    top: 113px;
    left: 177px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 0px;
    width: 123px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.share-detail {
    width: 123px;
    height: 50px;
    padding: 0px 10px;
    line-height: 50px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.share-detail:hover {
    background-color: #f3f5f6;
}

.interaction-container {
    display: flex;
    flex-direction: row;
    gap: 60px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 299px;
    justify-content: center;
    align-items: center;
    margin-top: 17px;
    border: 1px solid #e6e6e6;
    position: relative;
}

.interaction-container .like-section .icon-container, .interaction-container .comment-section1 .icon-container, .interaction-container .share-section .icon-container, .interaction-container .favorite-section .icon-container {
    transition: 0.2s all linear;
}

.interaction-container .like-section:hover .icon-container, .interaction-container .comment-section1:hover .icon-container, .interaction-container .share-section:hover .icon-container, .interaction-container .favorite-section:hover .icon-container {
    transform: scale(1.1);
    box-shadow: 0px 0px 5px #ccc5c5;
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #f4f4f4;
    border-radius: 50%;
    margin-bottom: 5px;
}

.count-container {
    text-align: center;
}

.text-container {
    text-align: center;
}

.like-icon {
    content: '\e600';
    cursor: pointer;
}

.comment-icon {
    content: '\e601';
    cursor: pointer;
}

.favorite-icon {
    content: '\e602';
    cursor: pointer;
}

.share-icon {
    content: '\e603';
    cursor: pointer;
}

.comment-section {
    width: 33%;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px 40px;
    height: 100vh;
    overflow: auto;
    position: relative;
    transition: all 0.3s ease-in-out;
    position: fixed;
    right: 0px;
    top: 9vh;
    overscroll-behavior: contain;
    display: none;
}

.sub-comments {
    margin-left: 30px;
}

.sub-comment-item {
    padding-left: 15px;
    margin-top: 10px;
}

.comment-header {
    width: 33%;
    height: 57px;
    font-size: 19px;
    line-height: 49px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.close {
    cursor: pointer;
    position: absolute;
    right: 0;
}
#customAlert {
    background-color: white;
    border: 1px solid #ccc;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/
    z-index: 1000;
    padding: 15px 10px;
    position: fixed;
    left: 43%;
    top: 10%;

    border-radius: 9px;

}
.header-outer{
    width: 100%;
    height: 57px;
}
.comment-input-outer{
    height: 15%;
}
#customAlert #alertMessage {
    /*padding: 10px;*/


    font-size: 14px;
}

.comment-header-outer {
    font-size: 19px;
    padding-top: 5px;
    width: 90%;
    position: fixed;
    top: 9vh;
    background-color: #fff;
    height: 57px;
    border-bottom: 1px solid #e6e6e6;
}

.comment-item {
    padding: 15px 0;
}

.comment-section.show {
    right: 0px;
    display: block;
}

.comment-user {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.username {
    font-size: 16px;
}

.comment-content p {
    margin-bottom: 5px;
}

.comment-time {
    font-size: 14px;
    color: #bbb;
}

.comment-actions {
    display: flex
;
    align-items: flex-start;
    font-size: 14px;
    flex-direction: row;
    line-height: 17px;
    /* margin-top: 13px; */
    height: 17px;
    color: rgb(82, 91, 100);
}
.comment-delete{
    margin-right: 4px;
}
.reply-icon,
.share-icon,
.like-icon {
    cursor: pointer;
    font-size: 14px;
}

.like-icon {
    font-size: 17px;
}

.sub-comments {
    display: none;
}

.reply-section {
    margin-top: 5px;
    font-size: 14px;
    color: #bbb;
    cursor: pointer;
}

.comment-input {
    display: flex
;
    align-items: center;
    margin-top: 10px;
    position: fixed;
    bottom: 0px;
    /* left: 0px; */
    width: 28%;
    height: 10%;
    background-color: white;
}
.comment-input input {
    flex: 1;
    padding: 8px;
    background-color: #f7f7f7;
    border: none;
    color: black;
    outline: none;
}

.input-icons {
    margin-left: 5px;
    cursor:pointer;
}

.emoji-icon,
.mention-icon {
    cursor: pointer;
}
.share-icon2{
cursor: pointer;
    font-size: 14px;
    display: none;
}
.reply-icon{
    margin-right: 16px;
}
.comment-content{
    margin-bottom: 10px;
}
.article-content{
    width: 80vw;
}
